<template>
  <div :class="classes" @click="onclick">
    test-project 组件运行态
  </div>
</template>

<script>
const cssprefix = "test-project";
export default {
  name: 'TestProject',
  computed: {
    classes() {
      return cssprefix;
    }
  },
  methods:{    
    onclick(e) {
      this.$emit("click", e);
    },
    m1(para1,para2){
      alert("m1 method:"+para1+","+para2);
      return 1;
    },
    m2(){
      alert("m2 method!");
      return "ok";
    }
  },
  mouted() {
    // 加载组件包内的js
    // xcube.resource.import(`${XCUBE_COMPONENT}lib/thirdpart-plugins.js`).then(msg => console.info(msg));
  }
}
</script>

<style scoped>
.test-project {
  background-color: #8CDCDB;
  border: blue 1px solid;
  cursor: pointer;
}
</style>
